﻿<%@ Page Language="c#" MasterPageFile="~/WebSite/Default.master"  CodeFile="~/WebSite/Default.aspx.cs"Inherits="WebSite_Default" Title="首页" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div id="DefaultContent">
        <!--Start of left column-->
        <div id="columnleft">
            <div class="leftblock">
            <h1>重要通知</h1>
            <div class="leftblockin">
                <asp:Label ID="ImportantInfoLabel" runat="server" CssClass="ImportantStyle" Text="重要信息"/>
            </div>
            </div>
            <div class="leftblock">
                <h1>登陆</h1>
                <div id="Login">
                     <!--登陆界面代码-->
                       <asp:Login ID="Login1" runat="server" 
                Font-Bold="False" Font-Names="宋体" Font-Size="14px" ForeColor="Black" TitleTextStyle-Font-Bold="True" 
                 BorderPadding="0" LoginButtonText="登陆网站" LoginButtonImageUrl="~/images/Button1.png" 
                               TitleText="" onauthenticate="Login1_Authenticate" Width="248px" 
                         Height="140px" >
                           <CheckBoxStyle VerticalAlign="Bottom" Wrap="True" Height="15px" Width="140px" />
                           <TextBoxStyle BorderColor="#A3C7F5" BorderStyle="Solid" Height="25px" 
                               Width="170px" />
                           <LoginButtonStyle BorderColor="#A3C7F5" BorderStyle="Solid" BorderWidth="1px" />
                           <InstructionTextStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                           <LabelStyle BackColor="White" Font-Bold="True" Font-Size="14px" 
                               Font-Strikeout="False" />
                           <TitleTextStyle Font-Bold="True" ForeColor="#003300" Font-Size="20px" />
                       </asp:Login>
              </div>
           </div>
       </div>
        <!--end columnleft-->
        <!--Start of right column-->
        <div id="columnright">
            <!-- Start of news list functionality -->
            <div class="rightblock">
                <h1>站内新闻</h1>
                <div class="dashedline"></div>
                   <asp:DataList ID="NewsDataList" runat="server" cssClass="newslist" Visible="true">
                        <ItemTemplate>
                            <asp:Label ID="PostTimeLabel" runat="server" CssClass="ListItem" Text='<%#Eval("ItemDate","[{0}]")%>'/>
                            <a href='<%# Eval("Id","News.aspx?id={0}") %>'><%# Eval("Title") %></a>
                            <div class="thumbnail"></div>
                        </ItemTemplate>
                   </asp:DataList>
                 <a href="Newslist.aspx">更多新闻 &raquo;</a>
            </div>
            <div class="rightblock">
                <h1>健康知识</h1>
                <div class="dashedline"></div>
                   <asp:DataList ID="HealthDataList" runat="server" cssClass="newslist" Visible="true">
                        <ItemTemplate>
                            <asp:Label ID="PostTimeLabel" runat="server" CssClass="ListItem" Text='<%#Eval("ItemDate","[{0}]")%>'/>
                            <a href='<%# Eval("Id","News.aspx?id={0}") %>'><%# Eval("Title") %></a>
                            <div class="thumbnail"></div>
                        </ItemTemplate>
                   </asp:DataList>
                <a href="HealthknowledgeList.aspx">更多健康知识 &raquo;</a>
            </div>
        </div>
  </div>
</asp:Content>
